package com.tongfutele.op;

/**
 * 业务结果返回码
 */
public class RespCode {
    /**
     * 通用返回码
     * 00000	交易成功
     * 00001	交易失败
     * 00002	参数要素不全
     * 00003	非业务时间
     * 00004	业务未授权
     * 00005	查询结果为空
     * 00006	系统无此业务
     */
    public static final String RESP_CODE_00000 = "00000";
    public static final String RESP_CODE_00001 = "00001";
    public static final String RESP_CODE_00002 = "00002";
    public static final String RESP_CODE_00003 = "00003";
    public static final String RESP_CODE_00004 = "00004";
    public static final String RESP_CODE_00005 = "00005";
    public static final String RESP_CODE_00006 = "00006";

    /**
     * 数据库异常
     * 00201	查询数据库异常
     * 00202	插入数据异常
     * 00203	修改数据异常
     * 00204	删除数据异常
     * 00205	过程执行异常
     */
    public static final String RESP_CODE_00201 = "00201";
    public static final String RESP_CODE_00202 = "00202";
    public static final String RESP_CODE_00203 = "00203";
    public static final String RESP_CODE_00204 = "00204";
    public static final String RESP_CODE_00205 = "00205";

    /**
     * 业务逻辑错误
     * 00401	关键数据项不能为空
     * 00402	业务数据内容不存在
     * 00403	数据格式不正确
     * 00404	业务逻辑执行错误
     */
    public static final String RESP_CODE_00401 = "00401";
    public static final String RESP_CODE_00402 = "00402";
    public static final String RESP_CODE_00403 = "00403";
    public static final String RESP_CODE_00404 = "00404";

    /**
     * 网络通讯错误
     * 00601	连接服务异常
     * 00602	断开服务异常
     * 00603	发送数据失败
     * 00604	接收数据失败
     */
    public static final String RESP_CODE_00601 = "00601";
    public static final String RESP_CODE_00602 = "00602";
    public static final String RESP_CODE_00603 = "00603";
    public static final String RESP_CODE_00604 = "00604";
}
